package com.wits.qso.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wits.platform.service.BaseService;
import com.wits.qso.dao.ClsDao;
import com.wits.qso.entity.Cls;
import com.wits.qso.entity.Dept;
import com.wits.qso.entity.Grade;

@Component
public class ClsService extends BaseService<Cls, String> {

	private ClsDao clsDao;

	/**
	 * 注入班级dao
	 * @param clsDao
	 */
	@Autowired
	public void setClsDao(ClsDao clsDao) {
		this.baseDao = clsDao;
		this.clsDao = clsDao;		
	}
	
	public boolean isExitsByGradeAndDept(Grade grade,Dept dept,String clsTitle){
		return clsDao.isExitsByGradeAndDept(grade, dept, clsTitle);
	}

}
